package com.lc.recovery.ui.activity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;

import com.lc.recovery.R;
import com.lc.recovery.app.AppActivity;

import butterknife.ButterKnife;
import butterknife.OnClick;

public class IdentitySelectionActivity extends AppActivity {

    private String mobile;
    private String password;
    private String code;
    private String share_code;

    @Override
    protected int getLayoutId() {
        return R.layout.activity_identityselection;
    }

    @Override
    protected void initView() {

    }

    @Override
    protected void initData() {

    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        // TODO: add setContentView(...) invocation
        ButterKnife.bind(this);

        mobile = getIntent().getStringExtra("mobile");
        password = getIntent().getStringExtra("password");
        code = getIntent().getStringExtra("code");
        share_code = getIntent().getStringExtra("share_code");

    }

    @OnClick({R.id.ll_shop, R.id.ll_community})
    public void onClick(View view) {
        switch (view.getId()) {
            case R.id.ll_shop:
                startActivity(new Intent(this,PerfectInformationActivity.class).putExtra("type","商户").putExtra("mobile",mobile).putExtra("password",password).putExtra("code",code).putExtra("share_code",share_code));
                finish();
                break;
            case R.id.ll_community:
                startActivity(new Intent(this,PerfectInformationActivity.class).putExtra("type","社区").putExtra("mobile",mobile).putExtra("password",password).putExtra("code",code).putExtra("share_code",share_code));
                 finish();
                break;
        }
    }
}
